package org.itheima.game.org.tank.game.ext

import org.itheima.game.org.tank.game.model.View

/**
 * description ：
 * author : chenmengjia
 * email : cmjsp1990@163.com
 * date : 2020/3/14 20:46
 */
fun View.checkCollision(view: View): Boolean {
    return checkCollision(x, y, width, height, view.x, view.y, view.width, view.height)

}